<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>3d效果透视perspective</title>
    <style>
        body {
            perspective: 500px;
        }
        
        div {
            transform: translate3d(300px, 200px, 200px);
            background-color: orange;
            width: 200px;
            height: 200px;
            margin: 0 auto;
        }
    </style>
</head>

<body>
    <div></div>
</body>

</html>